<!DOCTYPE HTML>
<meta charset="UTF-8">
<title>Card</title>
<link rel="stylesheet" href="style.css">
<h3>格式</h3>
<pre>
name{
	inherit:name,
	type:type,
	subtype:subtype,

	can_use:function(player),
	use_limit:number,
	filter_target:function(player,target),
	distance_limit:{type:number}
	select_target:number|[number,number],
	multi_target:boolean,

	content:function(step){},
	ai:{}
}
</pre>
<p>inherit表示卡牌是某个卡牌的分支，get.name(card)得到的是inherit的值</p>
<p>can_use中数组代表要同时满足数组中的每个条件，数字代表使用次数限制</p>
<p>select_target为指定的目标个数，-1代表固定目标，默认为1</p>
<p>multi_target代表即使指定了多个目标，也只结算一次，默认为false，比如南蛮入侵的multi_target为false，借刀杀人的multi_target为true</p>

<h3>举例</h3>
<p>杀</p>
<pre>
sha{
	type:'basic',
	can_use:1
	distance_limit:{attack:1},
	content:function(step){...}
}
</pre>
<p>火杀</p>
<pre>
sha{
	inherit:'sha',
	content:function(step){...}
}
</pre>
<p>桃</p>
<pre>
sha{
	type:'basic',
	distance_limit:{raw:0},
	content:function(step){...}
}
</pre>
<p>万箭齐发</p>
<pre>
sha{
	type:'trick',
	can_use:true,
	distance_limit:{raw_invs:1},
	content:function(step){...}
}
</pre>